<?php
	$currentItem = "Teacher";
?>
<include file="./Tpl/default/Admin/Public/header.html" />
<include file="./Tpl/default/Admin/Public/sidebar.html" />


<script charset="utf-8" src="../Public/editor/kindeditor.js">
</script>

<script>

	KE.show({
	    id : 'editor_id'
	});
		
	
</script>

<div>


	<h2>修改教师页面</h2>
	<img src="__PUBLIC__/teacherAvatar/{$teacher['avatar']}">
	<form action="__APP__/Admin/Teacher/modify" method="POST" enctype="multipart/form-data">
		<table>
			<tbody>
				<tr>
					<th>姓名：</th>
					<td>
						<input type="text" name="name" value="{$teacher['name']}" />
					</td>
				</tr>
				<tr>
					<th>照片</th>
					<td>
						<input type="file" name="avatar" />
					</td>
				</tr>
				<tr>
					<th>类型</th>
					<td>
						<select name="type">
							<option value="0" <?php if($teacher['type'] === '0'){echo('selected="selected"');}?>>教授</option>
							<option value="1" <?php if($teacher['type'] === '1'){echo('selected="selected"');}?>>副教授</option>
							<option value="2" <?php if($teacher['type'] === '2'){echo('selected="selected"');}?>>博士/讲师</option>
							<option value="3" <?php if($teacher['type'] === '3'){echo('selected="selected"');}?>>校内兼职教授</option>
							<option value="4" <?php if($teacher['type'] === '4'){echo('selected="selected"');}?>>企业聘请教授</option>
							<option value="5" <?php if($teacher['type'] === '5'){echo('selected="selected"');}?>>主要境外教师</option>
						</select>
					</td>
				</tr>
				<tr>
					<th>导师类型</th>
					<td>
						<select name="tutorType" selected="{$teacher['tutorType']}">
							<option value="0" <?php if($teacher['tutorType'] === '0'){echo('selected="selected"');}?>>一般教师</option>
							<option value="1" <?php if($teacher['tutorType'] === '1'){echo('selected="selected"');}?>>硕士生导师</option>
							<option value="2" <?php if($teacher['tutorType'] === '2'){echo('selected="selected"');}?>>博士生导师</option>
						</select>
					</td>
				</tr>
				<tr>
					<th>性别</th>
					<td>
						<select name="sex" selected="{$teacher['sex']}"}>
							<option value="M" <?php if($teacher['sex'] === 'M'){echo('selected="selected"');}?>>男</option>
							<option value="F" <?php if($teacher['sex'] === 'F'){echo('selected="selected"');}?>>女</option>
						</select>
					</td>
				</tr>
				<tr>
					<th>学历</th>
					<td>
						<input type="text" name="academic" value="{$teacher['academic']}" />
					</td>
				</tr>
				<tr>
					<th>所属学院</th>
					<td>
						<input type="text" name="school" value="{$teacher['school']}" />
					</td>
				</tr>
				<tr>
					<th>电话</th>
					<td>
						<input type="text" name="phone" value="{$teacher['phone']}" />
					</td>
				</tr>
				<tr>
					<th>email</th>
					<td>
						<input type="text" name="email" value="{$teacher['email']}" />
					</td>
				</tr>
				<tr>
					<th>介绍:</th>
					<td> </td>
				</tr>
		  </tbody>
	  </table>
					 <textarea id="editor_id" 
							   name="intro" 
							   style="width:700px;height:300px;">
							   {$teacher['intro']}
					 </textarea>
					<input type="hidden" name="teacher_id" value="{$teacher['teacher_id']}" />
					 <input type="SUBMIT" value="提交" />
	</form>

</div>


<include file="./Tpl/default/Admin/Public/footer.html" />


